import {createStore,applyMiddleware} from "redux"
import thunk from "redux-thunk"

const initData = [
    {content: ""},
    {content: ""},
    {content: ""}
]

const  reduser=(state=initData,action)=>{
    switch(action.type){
        case "select":
            return action.data
        default:
            return state
    }
}

const store = createStore(reduser,applyMiddleware(thunk))

export default store